<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="putton" value="按钮" onclick="f4(8,8)">
<!---->
<script>
  function f1() {
    console.log("f1")
  }
  //调用方法
  f1();

  function f2(name,age) {
    console.log(name+","+age);
  }
  f2("张飞",18)

  function f3() {
    return"这是返回值";
  }
  let info = f3();
  console.log(info);

  function f4(x,y) {
    return x*y;
  }
  let result = f4(8,9);
  console.log(result);

  let f5 = function (name,age) {
    console.log(name+":"+age);
  }
  f5("张飞",30);

  let f6 = new Function("name","age","console.log(name+':'+age)");
</script>
</body>
</html>